package cn.edu.njtc.service;

import cn.edu.njtc.entity.dto.UserDto;
import cn.edu.njtc.entity.dto.UserTokenDto;
import cn.edu.njtc.entity.pojo.User;
import cn.edu.njtc.exception.BizException;

import java.util.List;

/**
 * 用户操作业务接口
 *
 */
public interface UserService {
    User selectById(Integer id) throws BizException;
    UserTokenDto login(UserDto userDto) throws BizException;
    int register(UserDto userDto) throws BizException;
    List<User> getAllUsers();
    int add(User user);
    int deleteById(Integer id);
    int modify(User user);
    List<User> selectLikeName(String name);
}
